Action hook 'saved_{$taxonomy}'
in WP Core File wp-includes/taxonomy.php at line 2767
Description
Fires after a term in a specific taxonomy has been saved, and the term cache has been cleared. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `saved_category` - `saved_post_tag`
Occurrences
Filename |
Line Number |
wp-includes/taxonomy.php |
2767 |
wp-includes/taxonomy.php |
3477 |
Parameters
Type |
Name |
Description |
int |
$term_id |
Term ID. |
int |
$tt_id |
Term taxonomy ID. |
bool |
$update |
Whether this is an existing term being updated. |
array |
$args |
Arguments passed to wp_insert_term(). |
PHP Doc
/**
* Fires after a term in a specific taxonomy has been saved, and the term
* cache has been cleared.
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
* Possible hook names include:
*
* - `saved_category`
* - `saved_post_tag`
*
* @since 5.5.0
* @since 6.1.0 The `$args` parameter was added.
*
* @param int $term_id Term ID.
* @param int $tt_id Term taxonomy ID.
* @param bool $update Whether this is an existing term being updated.
* @param array $args Arguments passed to wp_insert_term().
*/